<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/manage/common/taglibs.jsp" %>
<div class="body" style="position: relative">
    <div style="position: absolute;left: 20px;top:10px ; width: 70px; text-align: center;color: #47a6f5;cursor:pointer;border: 1px solid  #47a6f5;line-height: 28px"
         onclick="manage_sys_opens('中心机房','/manage/demo/powerPage/tosecondaryPages.html')">返回</div>
<div class="container"><div class="EMStop1"></div></div>
<div class="container1">
    <div class="EMSUspContent"><p class="EMStitle" style="position: absolute;top:40px ;position: relative">机柜断电检测</p>
        <div class="content">
            <div class="left">
                <div class="upsSd" style=" background-image: url('/manage/assert/image/kongkai.gif');background-size: 60% 100%;">
                    <div class="loading" id="box">
                       
                    </div>
                </div>
                <p>连接状态 :<span class="linkSuccess"></span></p>
            </div>
            <div style="overflow: hidden;width:69% ">
                <div class="right" style="height: 380px; width:calc(100% + 19px);overflow: auto;">
                <table id="cabinetUps_table" border="2">
                    <tr>
                        <th class="blueBg">机柜名称</th>
                        <th class="blueBg">报警状态</th>
                        <th class="blueBg">连接状态</th>
                        <th class="blueBg">说   明</th>
                    </tr>
                    <tr>
                        <th class="blueBg">1号机柜</th>
                        <td><span name="di1" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">2号机柜</th>
                        <td><span name="di2" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">3号机柜</th>
                        <td><span name="di3" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">4号机柜</th>
                        <td><span name="di4" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">5号机柜</th>
                        <td><span name="di5" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">6号机柜</th>
                        <td><span name="di6" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">7号机柜</th>
                        <td><span name="di7" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">8号机柜</th>
                        <td><span name="di8" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">市电输入</th>
                        <td><span name="dis1" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">UPS输出</th>
                        <td><span name="dis2" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">发电机输入</th>
                        <td><span name="dis3" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">大屏</th>
                        <td><span name="dis4" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">漏水1</th>
                        <td><span name="dis5"class="linkSuccess"></span></td>
                        <td><span name=""class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">漏水2</th>
                        <td><span name="dis6" class="linkSuccess"></span></td>
                        <td><span name="" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>
                </table>
            </div>
            </div>
        </div>
    </div>
</div>

</div>
<script>
    $(function () {
        var count = 0;
        var t = setInterval(function () {
            var $redDiv = $("#box").find(".greenBg");
            if(count === 15){
                count=-1;
                $("#box").find('.greenBg').removeClass('greenBg').addClass('white');
                $redDiv=$("#box").find(".first");
                $("#box").find(".last").removeClass("greenBg").addClass("white");
            }
            $redDiv.next().removeClass("white").addClass("greenBg");
            count++;
        }, 1000);



        $.post("/manage/demo/equipment/fetchLastData.html?eids="+ $.websocket.kgl+","+ $.websocket.kglad88,function (entity) {

        })


    });
</script>